package com.liked.controller;

import com.common.result.Result;
import com.liked.service.LikedRecordService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author 路亚
 * @version 0.1
 * @className LikedRecordController
 * @description
 * @date 2024/12/30 21:07
 * @since jdk11
 */
@RestController
@RequiredArgsConstructor
@Slf4j
@RequestMapping("/liked/record")
public class LikedRecordController {

    private final LikedRecordService likedRecordService;

    @PostMapping("/add")
    public Result add(Long videoItemId) {
        likedRecordService.add(videoItemId);
        return Result.success();
    }
}
